<template>
  <!-- 主流程-二次核保  -->
  <div class="mt10">
    <div class="policy-main circulationInfo">
      <div class="base-mian-cell-title clearfix">
        <!-- 新增补充核保-->

        <div>
          <el-form :model="formDataA" class="search_container" label-width="140px">
            <el-row>
              <el-col :span="6">
                <el-form-item label="理赔号码">
                  <el-col :span="8">
                    <el-input disabled v-model="formDataA.lcfa.frontclmnum" placeholder="700"></el-input>
                  </el-col>
                  <el-col :span="16">
                    <el-input disabled v-model="formDataA.lcfa.behindclmnum" placeholder="理赔号码" clearable></el-input>
                  </el-col>
                </el-form-item>
              </el-col>

              <el-col :span="6">
                <el-form-item label="二核号">
                  <el-input disabled v-model="formDataA.lcfa.chksno"></el-input>
                </el-form-item>
              </el-col>

              <el-col :span="6">
                <el-form-item label="处理状态 :">
                  {{  formDataA.lcfa.chkstatus  }}
                </el-form-item>
              </el-col>

              <el-col :span="6">
                <el-form-item label="剩余处理天数 :">
                  {{  formDataA.alertMsg.leaveDays  }}
                </el-form-item>
              </el-col>
            </el-row>

            <el-row>
              <el-col :span="6">
                <el-form-item label="最小距满两年天数 :">
                  {{  formDataA.alertMsg.minTwoYearDays  }}
                </el-form-item>
              </el-col>

              <el-col :span="6">
                <el-form-item label="剩余阳性解约天数 :">
                  {{  formDataA.alertMsg.masculinedays  }}
                </el-form-item>
              </el-col>

              <el-col :span="6">
                <el-form-item label="公司 :">
                  {{  formDataA.lcfa.clmcoy  }}
                </el-form-item>
              </el-col>

              <!-- <el-col :span="6">
              <div style="margin-left: 30px">
                <el-button
                  type="primary"
                  icon="el-icon-search"
                  @click="search"
                ></el-button>
                <el-button
                  icon="el-icon-refresh"
                  @click="resetForm"
                ></el-button>
              </div>
            </el-col> -->
            </el-row>
          </el-form>

          <el-tabs v-model="activeName" @tab-click="handleClick" type="card">
            <!-- 补充核保-->
            <el-tab-pane label="补充核保" name="first">
              <el-collapse v-model="activeNames" style="margin-top: 5px">
                <el-collapse-item name="1" style="margin-top:5px">
                  <template slot="title">
                    <i class="el-icon-tickets pr5"></i> 二核原因
                  </template>
                  <el-row>
                    <el-col :span="6" style="margin:20px 0 0 50px">
                      <span>二核原因 :</span>
                      <el-button :disabled="formDataA.lcfa.chkstatus != '作废'" type="danger" plain size="mini"
                        style="margin-left: 20px" @click="addTextofdw3desc(dw3desc)">增加</el-button>
                    </el-col>
                  </el-row>

                  <el-row style="margin-left: 25px">
                    <div v-for="(item, index) in dw3desc" :key="index">
                      <div style="margin-top: 20px">
                        <div v-show="item.isChanged != '3'">
                          <span>
                            {{  item.jobName  }}
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            {{  item.crtdate  }}</span>
                          &nbsp;&nbsp;&nbsp;&nbsp;
                          <span>
                            <el-button size="mini" type="danger" :disabled="formDataA.lcfa.chkstatus != '作废'"
                              @click="deleteTextdw3desc(item, index, dw3desc)">删除</el-button>
                          </span>
                        </div>
                      </div>

                      <el-input :disabled="formDataA.lcfa.chkstatus != '作废'" type="textarea" :rows="2"
                        placeholder="请输入内容" v-model="item.chkrsn" style="margin-top: 10px"
                        v-show="item.isChanged != '3'">
                      </el-input>
                    </div>
                  </el-row>
                </el-collapse-item>

                <el-collapse-item name="2" style="margin-top: 15px">
                  <template slot="title">
                    <i class="el-icon-tickets pr5"></i> 核保处理信息
                  </template>
                  <el-table style="margin-top: 10px" ref="multipleTable" :data="dealInformationList"
                    tooltip-effect="dark" :row-class-name="tableRowClassNameThree" @row-click="onRowClickThree"
                    highlight-current-row>
                    <el-table-column prop="showChdrnum" label="保单号码" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.showChdrnum  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="reason" label="原因" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <el-button v-if="scope.row.showChdrnum != undefined & scope.row.showChdrnum != ''" type="danger"
                          plain size="mini" @click="reasonShow(scope.row)">原因</el-button>
                      </template>
                    </el-table-column>

                    <el-table-column prop="crtable" label="险种代码" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.crtable  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="sumin" label="保额" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.sumin  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="statcode" label="状态" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.statcode  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="crrcd" label="生效日期" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.crrcd  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="alertdays" label="距满2年天数" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.alertdays  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="effdate" label="变更生效日" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.effdate  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="trectyp" label="核保结论" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <el-select v-model="dealInformationList[scope.$index].trectyp" placeholder="请选择" clearable
                          :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" @change="
                            (val) => {
                              trectypChange(val, scope.row);
                            }
                          ">
                          <el-option v-for="item in trectypList" :key="item.trectypList" :label="item.label"
                            :value="item.value">
                          </el-option>
                        </el-select>
                      </template>
                    </el-table-column>

                    <el-table-column prop="changeContent" label="变更内容" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <el-button type="danger" plain size="mini" @click="changeContextClick(scope.row)">变更内容
                        </el-button>
                      </template>
                    </el-table-column>
                  </el-table>

                  <el-table style="margin-top: 10px" ref="multipleTable" :data="lcfgpfVO" tooltip-effect="dark"
                    :row-class-name="tableRowClassNameTow" @row-click="onRowClickTow" highlight-current-row>
                    <el-table-column align="center" width="250px" prop="chdrnum" label="保单号码" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.chdrnum  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column align="center" prop="llongtext" label="变更内容">
                      <template slot-scope="scope">
                        <el-input :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"
                          v-model="scope.row.llongtext" placeholder="请输入内容">
                        </el-input>
                      </template>
                    </el-table-column>
                  </el-table>

                  <!-- 新增和删除按钮 -->
                  <el-row>
                    <div style="float: right; margin: 15px 10px 0px 0px">
                      <el-button type="danger" plain size="mini"
                        :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" @click="underwriteAdd">
                        增加</el-button>
                      <el-button type="danger" plain size="mini"
                        :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" @click="underwritedelete">
                        删除</el-button>
                    </div>
                  </el-row>

                  <el-row style="margin-top: 5px">
                    <el-col :span="6" style="margin-left: 50px">
                      <span>核保意见 :</span>
                      <el-button type="danger" plain size="mini" style="margin-left: 20px"
                        :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"
                        @click="addTextofinsureInforList(insureInforList)">增加
                      </el-button>
                    </el-col>
                  </el-row>

                  <el-row style="margin-left: 25px">
                    <div v-for="(item, index) in insureInforList" :key="index">
                      <div style="margin-top: 20px">
                        <div v-show="item.isChanged != '3'">
                          <span>
                            {{  item.jobName  }}
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            {{  item.crtdate  }}</span>
                          &nbsp;&nbsp;&nbsp;&nbsp;
                          <span>
                            <el-button size="mini" type="danger"
                              :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" @click="
                                deleteTextinsureInforList(
                                  item,
                                  index,
                                  insureInforList
                                )
                              ">删除</el-button>
                          </span>
                        </div>
                      </div>

                      <el-input type="textarea" :rows="2"
                        :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" placeholder="请输入内容"
                        v-model="item.chkrsn" style="margin-top: 10px" v-show="item.isChanged != '3'">
                      </el-input>
                    </div>
                  </el-row>

                  <!-- 送理赔科确认和解除理赔确认 -->
                  <el-row style="float: right; margin: 15px 10px 15px 0px">
                    <el-col :span="5.1">
                      <el-button type="danger" size="mini" plain @click="sentConfirmate" :disabled="showFlag ||
                        euisClmFlag == 'CLM' ||
                        formDataA.lcfa.chkstatus != '核保中'
                      ">送理赔科确认</el-button>
                      <el-button type="danger" size="mini" plain @click="cancelConfirmate" :disabled="showFlag ||
                        euisClmFlag == 'CLM' ||
                        formDataA.lcfa.chkstatus != '理赔确认'
                      ">解除理赔确认</el-button>
                    </el-col>
                  </el-row>
                </el-collapse-item>
              </el-collapse>
            </el-tab-pane>

            <!-- 理赔意见 -->
            <el-tab-pane label="理赔意见" name="second" style="margin-top: 10px">
              <el-collapse v-model="activeNames" style="margin-top: 10px">
                <el-collapse-item name="1">
                  <template slot="title">
                    <i class="el-icon-tickets pr5"></i> 理赔意见
                  </template>
                  <el-table style="margin-top: 10px" ref="multipleTable" :data="dw4" tooltip-effect="dark"
                    @row-dblclick="dw4Change">
                    <el-table-column prop="chdrnum" label="保单" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <span>{{  scope.row.chdrnum  }}</span>
                      </template>
                    </el-table-column>

                    <el-table-column prop="flag01" label="是否比例赔付" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <el-checkbox :disabled="
                          (euisClmFlag == 'EUIS' || formDataA.lcfa.chkstatus != '理赔确认')
                        " @change="
  (val) => {
    flag01Change(val, scope.$index);
  }
" v-model="scope.row.flag01" @click.stop.native="() => { }"></el-checkbox>
                      </template>
                    </el-table-column>

                    <el-table-column prop="addamt" label="补缴金额" show-overflow-tooltip>
                      <template slot-scope="scope">
                        <el-input :disabled="
                          (euisClmFlag == 'EUIS' || formDataA.lcfa.chkstatus != '理赔确认')
                        " v-model="scope.row.addamt" placeholder="" @click.stop.native="() => { }"></el-input>
                      </template>
                    </el-table-column>
                  </el-table>

                  <el-form ref="form" :model="formDataA" label-width="120px" style="margin-top: 15px">
                    <el-row>
                      <el-col :span="8">
                        <el-form-item label="理赔意见 :">
                          <div>
                            <el-radio :disabled="
                              (euisClmFlag ==
                                'EUIS' ||
                                formDataA.lcfa.chkstatus == '待提交' ||
                                formDataA.lcfa.chkstatus == '核保中' ||
                                formDataA.lcfa.chkstatus == '完成')
                            " @change="trectypLcfarRdiaoChange" v-model="formDataA.trectypLcfarRdiao" label="1">同意
                            </el-radio>
                            <el-radio :disabled="
                              (euisClmFlag ==
                                'EUIS' ||
                                formDataA.lcfa.chkstatus == '待提交' ||
                                formDataA.lcfa.chkstatus == '核保中' ||
                                formDataA.lcfa.chkstatus == '完成')
                            " @change="trectypLcfarRdiaoChange" v-model="formDataA.trectypLcfarRdiao" label="2">不同意
                            </el-radio>
                            <el-radio :disabled="
                              (euisClmFlag ==
                                'EUIS' ||
                                formDataA.lcfa.chkstatus == '待提交' ||
                                formDataA.lcfa.chkstatus == '核保中' ||
                                formDataA.lcfa.chkstatus == '完成')
                            " @change="trectypLcfarRdiaoChange" v-model="formDataA.trectypLcfarRdiao" label="3">解除同意
                            </el-radio>
                          </div>
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item label="是否列印 :">
                          <el-select :disabled="
                            (euisClmFlag ==
                              'EUIS' ||
                              formDataA.lcfa.chkstatus == '待提交' ||
                              formDataA.lcfa.chkstatus == '核保中' ||
                              formDataA.lcfa.chkstatus == '完成')
                          " v-model="formDataA.dw6.autha" placeholder="请选择">
                            <el-option v-for="item in authaList" :key="item.value" :label="item.label"
                              :value="item.value">
                            </el-option>
                          </el-select>
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item label="确定人员 :">
                          <el-input :disabled="
                            (euisClmFlag ==
                              'EUIS' ||
                              formDataA.lcfa.chkstatus == '待提交' ||
                              formDataA.lcfa.chkstatus == '核保中' ||
                              formDataA.lcfa.chkstatus == '完成')
                          " v-model="formDataA.dw6.apprcode" placeholder="请输入内容"></el-input>
                        </el-form-item>
                      </el-col>
                    </el-row>

                    <el-row>
                      <el-col :span="8">
                        <el-form-item label="回复截至日期 :">
                          <el-input :disabled="
                            (euisClmFlag ==
                              'EUIS' ||
                              formDataA.lcfa.chkstatus == '待提交' ||
                              formDataA.lcfa.chkstatus == '核保中' ||
                              formDataA.lcfa.chkstatus == '完成')
                          " v-model="formDataA.dw6.enddate" placeholder=""></el-input>
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item label="结案日期 :">
                          <el-input :disabled="
                            (euisClmFlag ==
                              'EUIS' ||
                              formDataA.lcfa.chkstatus == '待提交' ||
                              formDataA.lcfa.chkstatus == '核保中' ||
                              formDataA.lcfa.chkstatus == '完成')
                          " v-model="formDataA.dw6.procedate" placeholder=""></el-input>
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item label="确认日期 :">
                          <el-input :disabled="
                            (euisClmFlag ==
                              'EUIS' ||
                              formDataA.lcfa.chkstatus == '待提交' ||
                              formDataA.lcfa.chkstatus == '核保中' ||
                              formDataA.lcfa.chkstatus == '完成')
                          " v-model="formDataA.dw6.apprdate" placeholder=""></el-input>
                        </el-form-item>
                      </el-col>
                    </el-row>

                    <el-row style="margin-top: 5px">
                      <el-col :span="6" style="margin-left: 50px">
                        <span>理赔意见说明 :</span>
                      </el-col>

                      <el-col :span="6" style="float: right">
                        <el-button :disabled="
                          (euisClmFlag ==
                            'EUIS' ||
                            formDataA.lcfa.chkstatus == '待提交' ||
                            formDataA.lcfa.chkstatus == '核保中' ||
                            formDataA.lcfa.chkstatus == '完成')
                        " type="danger" plain size="mini" @click="addTextofdw6desc(dw6desc)">增加</el-button>
                      </el-col>
                    </el-row>

                    <el-row style="margin-left: 25px">
                      <div v-for="(item, index) in dw6desc" :key="index">
                        <div style="margin-top: 20px">
                          <div v-show="item.isChanged != '3'">
                            <span>
                              {{  item.jobName  }}
                              &nbsp;&nbsp;&nbsp;&nbsp;
                              {{  item.crtdate  }}</span>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <span>
                              <el-button :disabled="
                                (euisClmFlag ==
                                  'EUIS' ||
                                  formDataA.lcfa.chkstatus == '待提交' ||
                                  formDataA.lcfa.chkstatus == '核保中' ||
                                  formDataA.lcfa.chkstatus == '完成')
                              " size="mini" type="danger" @click="deleteTextdw6desc(item, index, dw6desc)">删除
                              </el-button>
                            </span>
                          </div>
                        </div>

                        <el-input :disabled="
                          (euisClmFlag ==
                            'EUIS' ||
                            formDataA.lcfa.chkstatus == '待提交' ||
                            formDataA.lcfa.chkstatus == '核保中' ||
                            formDataA.lcfa.chkstatus == '完成')
                        " type="textarea" :rows="2" placeholder="请输入内容" v-model="item.chkrsn" style="margin-top: 10px"
                          v-show="item.isChanged != '3'">
                        </el-input>
                      </div>
                    </el-row>

                    <el-row style="margin-top: 30px">
                      <el-col :span="8">
                        <el-form-item label="客户意见 :">
                          <div>
                            <el-radio :disabled="
                              (euisClmFlag ==
                                'EUIS' ||
                                formDataA.lcfa.chkstatus == '待提交' ||
                                formDataA.lcfa.chkstatus == '核保中' ||
                                formDataA.lcfa.chkstatus == '完成')
                            " @change="authRdiaoChange" v-model="formDataA.authRdiao" label="Y">同意</el-radio>
                            <el-radio :disabled="
                              (euisClmFlag ==
                                'EUIS' ||
                                formDataA.lcfa.chkstatus == '待提交' ||
                                formDataA.lcfa.chkstatus == '核保中' ||
                                formDataA.lcfa.chkstatus == '完成')
                            " @change="authRdiaoChange" v-model="formDataA.authRdiao" label="N">不同意</el-radio>
                            <el-radio :disabled="
                              (euisClmFlag ==
                                'EUIS' ||
                                formDataA.lcfa.chkstatus == '待提交' ||
                                formDataA.lcfa.chkstatus == '核保中' ||
                                formDataA.lcfa.chkstatus == '完成')
                            " @change="authRdiaoChange" v-model="formDataA.authRdiao" label="U">免除客户意见</el-radio>
                          </div>
                        </el-form-item>
                      </el-col>
                      <el-col :span="16">
                        <div style="float: right; margin-top: 40px">
                          <span>{{  formDataA.dw6.username  }}</span>
                          &nbsp;&nbsp;&nbsp;&nbsp;
                          <span>{{  formDataA.dw6.usertime  }}</span>
                        </div>
                      </el-col>
                    </el-row>

                    <el-row>
                      <el-input :disabled="(euisClmFlag == 'EUIS')" v-if="formDataA.authRdiao == 'N'" type="textarea"
                        :rows="4" placeholder="请输入内容" v-model="formDataA.dw6.chkdesc">
                      </el-input>
                    </el-row>
                  </el-form>
                </el-collapse-item>
              </el-collapse>
            </el-tab-pane>
          </el-tabs>


          <div align="center" style="margin-top: 30px">
            <el-button :disabled="showFlag" size="mini" type="danger" @click="saveReview" v-if="
              (euisClmFlag == 'EUIS') & (formDataA.lcfa.chkstatus != '完成')
            ">保 存
            </el-button>

            <el-button size="mini" type="danger" @click="submitTowReview" :disabled="
              euisClmFlag == 'EUIS' ||
              formDataA.lcfa.chkstatus == '核保中' ||
              formDataA.lcfa.chkstatus == '理赔确认' ||
              formDataA.lcfa.chkstatus == '待客户签' ||
              formDataA.lcfa.chkstatus == '完成'
            ">提 交 二 核</el-button>
            <el-button size="mini" type="danger" @click="deleteTowReview" :disabled="
              euisClmFlag == 'EUIS' ||
              formDataA.lcfa.chkstatus == '核保中' ||
              formDataA.lcfa.chkstatus == '理赔确认' ||
              formDataA.lcfa.chkstatus == '待客户签' ||
              formDataA.lcfa.chkstatus == '完成'
            ">删 除 二 核</el-button>

            <el-button size="mini" type="danger" @click="closeCase" :disabled="
              euisClmFlag == 'EUIS' ||
              formDataA.lcfa.chkstatus == '核保中' ||
              formDataA.lcfa.chkstatus == '待提交' ||
              formDataA.lcfa.chkstatus == '理赔确认' ||
              formDataA.lcfa.chkstatus == '完成'
            ">结 案</el-button>
            <el-button size="mini" type="danger" @click="againUnderwrite" :disabled="
              euisClmFlag == 'EUIS' ||
              formDataA.lcfa.chkstatus == '核保中' ||
              formDataA.lcfa.chkstatus == '待提交' ||
              formDataA.lcfa.chkstatus == '理赔确认' ||
              formDataA.lcfa.chkstatus == '待客户签'
            ">重 新 二 核</el-button>
            <el-button size="mini" type="danger" @click="relieveUnderwrite" :disabled="
              euisClmFlag == 'EUIS' ||
              formDataA.lcfa.chkstatus == '待提交' ||
              formDataA.lcfa.chkstatus == '理赔确认' ||
              formDataA.lcfa.chkstatus == '待客户签' ||
              formDataA.lcfa.chkstatus == '完成'
            ">解 除 核 保</el-button>
            <el-button size="mini" type="danger" @click="relieveCloseCase" :disabled="
              euisClmFlag == 'EUIS' ||
              formDataA.lcfa.chkstatus == '核保中' ||
              formDataA.lcfa.chkstatus == '待提交' ||
              formDataA.lcfa.chkstatus == '待客户签' ||
              formDataA.lcfa.chkstatus == '理赔确认'
            ">解 除 结 案</el-button>
            <el-button size="mini" type="danger" @click="ChangeWriteContent"
              :disabled="formDataA.lcfa.chkstatus == '待提交'">承保内容变更通知书</el-button>
          </div>
        </div>
      </div>
    </div>

    <!-- 新增补充核保(变更内容弹框)-->
    <el-dialog title="补充核保" :visible.sync="dialogVisibleSuppleContext" width="85%">
      <div class="el-dialog-div">
        <el-collapse v-model="activeNames" style="margin-top: 10px">
          <el-collapse-item name="1">
            <template slot="title">
              <i class="el-icon-tickets pr5"></i> 变更内容
            </template>

            <el-form ref="form" :model="lcfdpfVO" label-width="120px" style="margin-top: 15px">
              <el-row>
                <el-col :span="8">
                  <el-form-item label="险种代码 :">
                    <el-input v-model="lcfdpfVO.crtable" placeholder="请输入内容" disabled></el-input>
                  </el-form-item>
                </el-col>

                <el-col :span="8">
                  <el-form-item label="核保结论 :">
                    <el-input v-model="lcfdpfVO.trectyp" placeholder="请输入内容" disabled></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <!-- 除外显示 -->
              <el-row v-if="trectyJudge == 'E'">
                <el-col :span="16">
                  <el-form-item label="除外内容 :">
                    <el-input v-model="lcfdpfVO.cmntdesc" placeholder="请输入内容"
                      :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'">
                    </el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <!-- 加费显示 -->
              <el-row v-if="trectyJudge == 'A'">
                <el-col :span="8">
                  <el-form-item label="TM加费比例 :">
                    <el-input :disabled="showFlag ||
                      zmortpctEnditFlag == '1' || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'
                    " v-model="lcfdpfVO.zmortpct" placeholder="请输入内容"></el-input>
                  </el-form-item>
                </el-col>

                <el-col :span="8">
                  <el-form-item label="加费百分比 :">
                    <el-input
                      :disabled="showFlag || oppcEnditFlag == '1' || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"
                      v-model="lcfdpfVO.oppc" placeholder="请输入内容"></el-input>
                  </el-form-item>
                </el-col>

                <el-col :span="8">
                  <el-form-item label="加费金额 :">
                    <el-input :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"
                      v-model="lcfdpfVO.addamt" placeholder="请输入内容"></el-input>
                  </el-form-item>
                </el-col>
              </el-row>

              <el-row>
                <el-col :span="8">
                  <el-form-item label="变更生效日 :">
                    <el-input :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"
                      v-model="lcfdpfVO.effdate" placeholder="请输入内容"></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </el-form>
          </el-collapse-item>
        </el-collapse>

        <div align="center" style="margin-top: 30px">
          <el-button :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" style="margin-right: 80px"
            type="danger" plain size="mini" @click="addchangeContext">确定</el-button>
          <el-button type="danger" plain size="mini" @click="dialogVisibleSuppleContext = false">取消</el-button>
        </div>
      </div>
    </el-dialog>

    <!-- 新增补充核保(原因弹框)-->
    <el-dialog title="补充核保" :visible.sync="dialogVisibleSuppleReason" width="85%">
      <div class="el-dialog-div">
        <el-collapse v-model="activeNames2" style="margin-top: 10px">
          <el-collapse-item name="1">
            <template slot="title">
              <i class="el-icon-tickets pr5"></i> 变更原因
            </template>
            <el-table ref="singleTable" :data="changeCauseList" tooltip-effect="dark"
              :row-class-name="tableRowClassName" @row-click="onRowClick" highlight-current-row>
              <el-table-column prop="reansonChange" label="变更原因类型" show-overflow-tooltip width="300px">
                <template slot-scope="scope">
                  <span>
                    <el-select v-model="scope.row.flag02" placeholder="请选择"
                      @change="((val) => { changeFlag02(val, scope.row) })"
                      :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'">
                      <el-option v-for="item in flag02List" :key="item.value" :label="item.label" :value="item.value">
                      </el-option>
                    </el-select>
                  </span> </template>
              </el-table-column>

              <el-table-column prop="llongtext" label="变更原因" show-overflow-tooltip width="700px">
                <template slot-scope="scope">
                  <el-input v-model="scope.row.llongtext"
                    :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                </template>
              </el-table-column>

              <el-table-column prop="userProfile" label="USER" show-overflow-tooltip>
                <template slot-scope="scope">
                  <span>{{  scope.row.userProfile  }}</span>
                </template>
              </el-table-column>

              <el-table-column prop="datime" label="日期" show-overflow-tooltip>
                <template slot-scope="scope">
                  <span>{{  scope.row.datime  }}</span>
                </template>
              </el-table-column>
            </el-table>
            <div style="float: right">
              <el-button type="danger" plain size="small" style="margin-left: 20px"
                :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" @click="addReason">增加</el-button>

              <el-button type="danger" plain size="small" style="margin-left: 20px"
                :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" @click="deleteReason">删除
              </el-button>
              <el-button type="danger" plain size="small" style="margin-left: 20px"
                :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'" @click="saveReason">保存</el-button>
            </div>
          </el-collapse-item>

          <el-collapse-item name="2" style="margin-top:10px">
            <template slot="title">
              <i class="el-icon-tickets pr5"></i> 加费/除外原因
            </template>
            <el-row style="margin-left: 25px">
              <div v-for="item in addCostOtherCauseList" :key="item.index">
                <div style="margin-top: 20px">
                  <el-row>
                    <el-col :span="4" style="margin-right: -120px">
                      <span>加费/除外原因:</span>
                    </el-col>

                    <el-col :span="4">
                      <span>
                        <el-input v-model="item.userProfile"
                          :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                      </span>
                    </el-col>

                    <el-col :span="4">
                      <span>
                        <el-input v-model="item.datime"
                          :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                      </span>
                    </el-col>

                    <el-col :span="4">
                      <span>
                        <el-input v-model="item.chkrsn"
                          :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                      </span>
                    </el-col>
                  </el-row>
                </div>
              </div>
            </el-row>
          </el-collapse-item>

          <el-collapse-item name="3" style="margin-top:10px">
            <template slot="title">
              <i class="el-icon-tickets pr5"></i> 拒保原因
            </template>
            <el-row style="margin-left: 25px">
              <div v-for="item in refuseInsureList" :key="item.id">
                <div style="margin-top: 20px">
                  <el-row>
                    <el-col :span="4" style="margin-right: -120px">
                      <span>拒保原因:</span>
                    </el-col>

                    <el-col :span="4">
                      <span>
                        <el-input v-model="item.userProfile"
                          :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                      </span>
                    </el-col>

                    <el-col :span="4">
                      <span>
                        <el-input v-model="item.datime"
                          :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                      </span>
                    </el-col>

                    <el-col :span="4">
                      <span>
                        <el-input v-model="item.chkrsn"
                          :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                      </span>
                    </el-col>
                  </el-row>
                </div>
              </div>
            </el-row>
          </el-collapse-item>

          <el-collapse-item name="4" style="margin-top:10px">
            <template slot="title">
              <i class="el-icon-tickets pr5"></i> 不续保原因
            </template>
            <el-row style="margin-left: 25px">
              <div v-for="item in noContinueInuserList" :key="item.id">
                <div style="margin-top: 20px">
                  <div>
                    <el-row>
                      <el-col :span="4" style="margin-right: -120px">
                        <span>不续保原因:</span>
                      </el-col>

                      <el-col :span="4">
                        <span>
                          <el-input v-model="item.userProfile"
                            :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                        </span>
                      </el-col>

                      <el-col :span="4">
                        <span>
                          <el-input v-model="item.datime"
                            :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                        </span>
                      </el-col>

                      <el-col :span="4">
                        <span>
                          <el-input v-model="item.chkrsn"
                            :disabled="showFlag || euisClmFlag == 'CLM' || formDataA.lcfa.chkstatus != '核保中'"></el-input>
                        </span>
                      </el-col>
                    </el-row>
                  </div>
                </div>
              </div>
            </el-row>
          </el-collapse-item>
        </el-collapse>

        <div style="float: right">
          <el-button style="margin-top:10px" type="danger" plain size="mini" @click="dialogVisibleSuppleReason = false">
            返回</el-button>
        </div>
      </div>
    </el-dialog>

    <!-- 保单目录详细 -->
    <el-dialog title="保单目录详细" :visible.sync="dialogRelapolici" width="80%">
      <div class="el-dialog-div">
        <el-form :model="po" label-width="120px" style="margin-top: 15px">
          <el-row>
            <el-col :span="8">
              <el-form-item label="保单号码 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.chdrnum
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.cnttype
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.ctypedesc
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="币别 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.cntcurr
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="保单状况 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.chdrstatus
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="保费状况 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.premstatus
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="国别 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.register
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="被保人 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.lifenum
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.lifename
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="连生被保人 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.jlifenum
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.jlifename
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="要保人 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.cownnum
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.ownername
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="连生要保人 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.jowner
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.jownername
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="付款人 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.payer
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.payername
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="招揽别 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.wvarcom
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.wvarcomd
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="营销员 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.indic
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="优惠代码 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.campaign
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.oopt
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="高保费折扣 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.annumpc
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.addrtype
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="服务营销员 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.servagnt
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="控管中心 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.servbr
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.brchname
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="币别 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.billcurr
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="付款方式 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.mop
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="缴别 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.payfreq
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="最近缴费日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.lastinsdte
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.instpramt
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="起保日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.currfrom
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="下期开单日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.nextinsdte
                  }}</span>
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.nextinsamt
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="下期应缴日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.ptdate
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="要保签署日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.hpropdate
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="下期通知日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.btdate
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="建档日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.hprrcvdate
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="业务来源 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.srcebus
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="首次发单日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.hoissdate
                  }}</span>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="核保日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.huwdcdate
                  }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="垫缴选择权 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.znfopt
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item label="重新发单日 :" class="fontStyle">
                <span style="font-weight: normal; margin-left: 20px">{{
                   po.hissdate
                  }}</span>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>

        <template>
          <el-table ref="singleTable" :data="urls" highlight-current-row style="width: 100%">
            <el-table-column property="life" label="" width="120">
            </el-table-column>
            <el-table-column property="coverage" label="" width="120">
            </el-table-column>
            <el-table-column property="surname" label="被保人" width="120">
            </el-table-column>
            <el-table-column property="clntnum" label="Client_no" width="120">
            </el-table-column>
            <el-table-column property="crtable" label="险种"> </el-table-column>
            <el-table-column property="mortcls" label="职级" width="120">
            </el-table-column>
            <el-table-column property="sumins" label="保额" width="120">
            </el-table-column>
            <el-table-column property="campaign" label="计划">
            </el-table-column>
            <el-table-column property="statcode" label="保单状况" width="120">
            </el-table-column>
            <el-table-column property="pstatcode" label="保费状况">
            </el-table-column>
          </el-table>
        </template>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import transformation from "@/utils/transformation/qualityInspection";
import constant from "@/utils/constant";
import { getToken } from "@/utils/auth"; // 验权(从cookie中获取)
import {
  queryApi,
  getChdrnumListApi,
  initRenewApi,
  getReUnderwriteCb3clickC2Api,
  saveRenewApi,
  delReAuditApi,
  valiCrtableApi,
  auditeApi,
  unAuditApi,
  getReUnderwriteCb4clickC2andC3Api,
  getReUnderwriteCb4clickC1Api,
  getNoteInformationApi,
  searchApi,
  queryCauseApi,
  saveChangeCauseApi,
  goChangeApi,
  saveReunderwriteApi,
  findZpshortcFromLcckByCrtableApi,
  countCrtableFromEufopfBycrtableApi,
  submitReunderwriteApi,
  deleteReunderwriteApi,
  existQlPendingAndSaveApi,
  reOpenReunderwriteApi,
  policyQueryListApi,
  buryCaseApi,
  unBuryCaseApi,
  releaseCaseConfirmApi,
  countLcfdByClmnumChksnoApi,
  countLcfdByClmnumChksnoCmntdescTrectypApi,
  goEuisClaimConfirmApi,
  cancelEuisClaimConfirmApi,
  abandonSelectApi,
  checkMasculineAlertApi,
  callClm034Api,
  wfAnunityApi,
  getChksnoApi,
  changeNoticeApi,
} from "@/api/taskCenter/twiceMessage";
export default {
  data() {
    return {
      userid:"",
      activeName: 'first',
      activeNames: ['1', '2'],
      activeNames2: ['1', '2', '3', '4'],
      lcfaDTO: "",
      chinesename: "",
      reviewVal: "",
      cancelRenewalflag: true,
      euisClmFlag: "EUIS",
      showFlag :false,
      po: {},
      urls: [],
      dialogRelapolici: false,
      procecode: "",
      mindate: "",
      busidate: "",
      claimtype: "",
      lcfgpfVO: [],
      indexThree: "",
      chdrnumLabel: "",
      clmnumLabel: "",
      chksnoLabel: "",
      trectypLabel: "",
      indexTow: "",
      oppcEnditFlag: "",
      zmortpctEnditFlag: "",
      //变更内容
      lcfdpfVO: {},
      trectyJudge: "",
      chdrnumlabel: "",
      userProfileLabel: "",
      index: "",
      //变更原因
      changeCauseList: [],
      //加费/除外原因
      addCostOtherCauseList: [],
      //不继保原因
      noContinueInuserList: [],
      //拒保原因
      refuseInsureList: [],
      dw6desc: [],
      //二核原因
      dw3desc: [],

      insureInforList: [],
      //是否列印
      authaList: [
        { label: "Y", value: "Y" },
        { label: "N", value: "N" },
      ],
      trectypList: [
        { label: "维持", value: "K" },
        { label: "加费", value: "A" },
        { label: "除外", value: "E" },
        { label: "拒保", value: "D" },
        { label: "不续保", value: "R" },
      ],
      //变更原因类型
      flag02List: [
        { label: "疾病不如实告知", value: "0" },
        { label: "年龄误告", value: "1" },
        { label: "职业误告", value: "2" },
      ],
      //保单下拉选择列表
      chdrnumList: [],
      control: true, //控制补充核保与理赔意见的显示
      dataList: [{ chktyp: "", chkstatus: "" }],
      formDataA: {
        base:{},
        lcfa: {},
        alertMsg: {},
        dw6: {},
        trectypLcfarRdiao: "",
        authRdiao: "",
      }, //补充核保表单信息
      formDataB: {}, //理赔意见表单信息
      formDataD: {}, //补充核保表单信息(变更内容弹框表单信息)
      dialogVisibleRenewal: false, //新增续期核保弹框判断
      dialogVisibleSupple: false, //新增补充核保
      dialogVisibleSuppleContext: false, //补充核保表单信息(变更内容弹框)
      dialogVisibleSuppleReason: false, //补充核保表单信息(原因弹框)
      taskStatus: [],
      dataForm: {},
      //补充核保table表格
      dealInformationList: [{ clmnum: "02282569" }],
      dataListB: [],
      //新增补充核保table表格
      dw4: [{ clmnum: "02282569" }],
      dataListD: [{ reansonChange: "类型1" }],
      formDate: {
        chkstatus: "",
        frontclmnum: "",
        behindclmnum: "",
        chksno: "",
        clmnum: "",
        chdrnum: "",
      },
      dataNum: 0,
      dataS: [], //核保结论下拉框
      options: [],
      param: {},
      lcfc: { chkrsn: "" },
      saveflag: "",
      chDisableFlag: false, // 判断保单号下拉框是否禁用
      lcfaDellete: [],
      jobName: "",
      account: "",
      clmnum: "",
    };
  },
  created() {
    this.userid = JSON.parse(localStorage.getItem(getToken("token"))).userKeyInfo.id
    console.log(this.userid,"userid")
    this.$store.dispatch("loading/CHANGE_LOADING", true);
    this.clmnum = this.$route.query.clmnum;
    var chksnoresult = this.$route.query.chksno;
    if(this.$route.query.showFlag != undefined && this.$route.query.showFlag != null){
      this.showFlag = true;
    }
    let param1 = {
      clmnum: this.clmnum,
      chksno: chksnoresult,
    };
    searchApi(param1)
      .then((res) => {
        if (res.resultCode === 0) {
          this.formDataA.lcfa = res.data.lcfa;
          //后理赔号
          var newbehindclmnum = this.formDataA.lcfa.clmnum;
          if (newbehindclmnum !== undefined) {
            this.$set(
              this.formDataA.lcfa,
              "behindclmnum",
              newbehindclmnum.substring(3, 9)
            );
          }
          //翻译二核类别
          this.formDataA.lcfa.chkstatus = this.transformationFun(
            "chkstatus",
            this.formDataA.lcfa.chkstatus
          );

          this.formDataA.alertMsg = res.data.alertMsg;

          this.formDataA.dw6 = res.data.dw6;
          this.formDataA.trectypLcfarRdiao = this.formDataA.dw6.trectypLcfa;
          this.formDataA.authRdiao = this.formDataA.dw6.auth;
          this.mindate = res.data.mindate;
          this.busidate = res.data.busidate;
          this.claimtype = res.data.claimtype;

          this.dealInformationList = res.data.dealInformationList;

          this.dw4 = res.data.dw4;

          //是否赔付比例转化
          for (let one of this.dw4) {
            if ((one.flag01 != undefined) & (one.flag01 == "1")) {
              this.$set(one, "flag01", true);
            } else {
              this.$set(one, "flag01", false);
            }
          }
          //二核原因
          this.dw3desc = res.data.dw3desc;
          console.log(res.data.dw3desc, "res.data.dw3desc res.data.dw3desc");
          //核保意见 :
          this.insureInforList = res.data.insureInforList;
          //理赔意见
          this.dw6desc = res.data.dw6desc;
          //批注信息
          this.lcfgpfVO = res.data.postilList;

          this.$message({
            message: res.resultMsg,
            type: "success",
            showClose: true,
          });
          this.$store.dispatch("loading/CHANGE_LOADING", false);
        } else {
          this.$message({
            message: res.resultMsg,
            type: "warning",
            showClose: true,
          });
        }
      })
      .catch(() => {
        this.$store.dispatch("loading/CHANGE_LOADING", false);
      });
    this.chinesename = JSON.parse(
      localStorage.getItem(getToken("token"))
    ).userKeyInfo.chinesename;

    this.account = JSON.parse(
      localStorage.getItem(getToken("token"))
    ).userKeyInfo.account;
    this.reviewVal = this.$route.params.review; //Y-复核,N-审核
    // this.intDataListA();
  },
  methods: {
    changeFlag02(val, row) {
      if (val == "0") {
        this.$set(row, "llongtext", "XXXX（疾病），为保险合同成立/复效前之病史，而投保时未如实告知，以上事项已严重影响本公司的承保决定。")
      } else if (val == "1") {
        this.$set(row, "llongtext", " 投保时告知的年龄与其真实年龄不符，投保时的年龄应为XX岁。")
      } else {
        this.$set(row, "llongtext", "实际职业为XX（职业等级为XX级），与投保时/复效时告知的职业等级不符。")
      }

    },
    //承保内容变更通知书
    ChangeWriteContent() {
      let param = {
        clmnum: this.clmnum,
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
      };
      changeNoticeApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            sessionStorage.setItem("booksDatas", JSON.stringify(res.data))
            let host = window.location.host;
            let url = `http://${host}/taskCenter/insuredbook`;//线上
            // let url = `/taskCenter/insuredbook`;// 本地
            let sFeatures = "toolbar=no,status=no,menubar=no,location=no,resizable=yes,scrollbars=yes,width=1000,height=800";
            window.open(url, "承保变更通知书", sFeatures);
            console.log(url, "承保变更通知书 url");
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //作废/取消续期核保
    cancelRenewal() {
      if (this.lcfaDellete.length > 1) {
        this.$message({
          message: "只能选择一条数据",
          type: "warning",
          showClose: true,
        });
        return;
      }

      let param = {
        clmnum: this.lcfaDellete[0].clmnum,
        chksno: this.lcfaDellete[0].chksno,
        clmcoy: this.lcfaDellete[0].clmcoy,
      };
      abandonSelectApi(param)
        .then((res) => {
          if (res.resultCode == 0) {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
            // this.intDataListA();
          } else if (res.resultCode == 500) {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
      // this.intDataListA();
      this.cancelRenewalflag = true;
    },
    // 进行删除操作
    delLcfaRow() {
      let param = {
        lcfapfList: this.lcfaDellete,
      };
      delReAuditApi(param)
        .then((res) => {
          if (res.resultCode == 0) {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
            // this.intDataListA();
          } else if (res.resultCode == 500) {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
      // this.intDataListA();
    },
    //送理赔科确认按钮
    sentConfirmate() {

      if (this.insureInforList.length <= 0) {
        this.$message({
          message: "请录入核保意见",
          type: "warning",
          showClose: true,
        });
        return;
      } else {
        var count = 0;
        for (let one of this.insureInforList) {
          if (one.isChanged != '3') {
            count++;
            if (one.chkrsn == undefined || one.chkrsn == "") {
              this.$message({
                message: "请录入核保意见",
                type: "warning",
                showClose: true,
              });
              return;
            }
          }
        }
      }
      if (count == 0) {
          this.$message({
            message: "请录入核保意见",
            type: "warning",
            showClose: true,
          });
          return;
      }


      this.transfrom(this.formDataA.lcfa);
      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
        chkstatus: this.formDataA.lcfa.chkstatus,
      };
      //送理赔科确认 检查加费金额
      this.$.ajax({
        headers: {
          Authorization: getToken(constant.TOKEN) || "",
        },
        url:
          constant.clmbase +
          '/clm/reAudit2/countLcfdByClmnumChksno', //url路径
        type: "POST", //GET
        async: false, //或false,是否异步
        data: JSON.stringify(param),
        contentType: "application/json;charset=UTF-8",
        success: function (res, textStatus, jqXHR) {
          if (res.resultCode === 0) {
            let count = res.data.countAmt;
            if (count > 0) {
              this.$message({
                message: "注意,请录入加费金额",
                type: "warning",
                showClose: true,
              });
              return;
            }
          }
        },
      });
      this.$.ajax({
        headers: {
          Authorization: getToken(constant.TOKEN) || "",
        },
        url:
          constant.clmbase +
          '/clm/reAudit2/countLcfdByClmnumChksnoCmntdescTrectyp', //url路径
        type: "POST", //GET
        async: false, //或false,是否异步
        data: JSON.stringify(param),
        contentType: "application/json;charset=UTF-8",
        success: function (res, textStatus, jqXHR) {
          if (res.resultCode === 0) {
            let count = res.data.countLcfd;
            if (count > 0) {
              this.$message({
                message: "注意,请录入除外内容",
                type: "warning",
                showClose: true,
              });
              return;
            }
          }
        },
      });

      //送理赔科确认 检查除外内容
      // countLcfdByClmnumChksnoCmntdescTrectypApi(param)
      //   .then((res) => {
      //     if (res.resultCode === 0) {
      //       let count = res.data.countLcfd;
      //       if (count > 0) {
      //         this.$message({
      //           message: "注意,请录入除外内容",
      //           type: "warning",
      //           showClose: true,
      //         });
      //         return;
      //       }
      //     }
      //   })
      //   .catch(() => { });

      //送理赔科确认
      goEuisClaimConfirmApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.saveReview();
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //解除理赔确认
    cancelConfirmate() {
      this.$store.dispatch("loading/CHANGE_LOADING", true);
      console.log(
        this.formDataA.lcfa,
        "this.formDataA.lcfa this.formDataA.lcfa this.formDataA.lcfa"
      );
      this.transfrom(this.formDataA.lcfa);
      if (
        !(
          this.formDataA.lcfa.chkstatus == "S" &&
          (this.formDataA.lcfa.auth01 == undefined ||
            this.formDataA.lcfa.auth01.trim() == "") &&
          this.formDataA.lcfa.pndate01 == 0 &&
          this.formDataA.lcfa.pndate02 == 0
        )
      ) {
        this.$message({
          message: "解除理赔状态不通过",
          type: "warning",
          showClose: true,
        });
        return;
      }

      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
        chkstatus: this.formDataA.lcfa.chkstatus,
      };
      //解除理赔确认
      cancelEuisClaimConfirmApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.$store.dispatch("loading/CHANGE_LOADING", false);
            let param1 = {
              clmnum: this.formDataA.lcfa.clmnum,
              chksno: this.formDataA.lcfa.chksno,
            };
            this.searchMethod(param1);
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$store.dispatch("loading/CHANGE_LOADING", false);
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { this.$store.dispatch("loading/CHANGE_LOADING", false); });
    },
    //解除结案
    relieveCloseCase() {
      this.transfrom(this.formDataA.lcfa);
      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
        chkstatus: this.formDataA.lcfa.chkstatus,
        clmcoy: this.formDataA.lcfa.clmcoy,
      };
      releaseCaseConfirmApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            // this.intDataListA();
            this.dialogVisibleSupple = false;
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //解除核保
    relieveUnderwrite() {
      this.transfrom(this.formDataA.lcfa);
      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
        chkstatus: this.formDataA.lcfa.chkstatus,
        clmcoy: this.formDataA.lcfa.clmcoy,
      };
      unBuryCaseApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            // this.intDataListA();
            this.dialogVisibleSupple = false;
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            // this.intDataListA();
            this.dialogVisibleSupple = false;
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //结案
    closeCase() {
      this.transfrom(this.formDataA.lcfa);
      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
        chkstatus: this.formDataA.lcfa.chkstatus,
        clmcoy: this.formDataA.lcfa.clmcoy,
      };
      buryCaseApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            // this.intDataListA();
            this.dialogVisibleSupple = false;
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    dw4Change(row) {
      let param = {
        chdrnum: row.chdrnum,
        clmcoy: this.formDataA.base.coy,
      };
      policyQueryListApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.po = res.data.po;
            this.urls = res.data.urls;
            this.dialogRelapolici = true;
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    transfrom(param) {
      if (param.chkstatus === "待提交") {
        param.chkstatus = "K";
      } else if (param.chkstatus === "完成") {
        param.chkstatus = "C";
      } else if (param.chkstatus === "理赔确认") {
        param.chkstatus = "S";
      } else if (param.chkstatus === "待客户签") {
        param.chkstatus = "R";
      } else if (param.chkstatus === "核保中") {
        param.chkstatus = "P";
      } else if (param.chkstatus === "作废") {
        param.chkstatus = "T";
      }
    },
    //删除二和
    deleteTowReview() {
      if (this.formDataA.lcfa.chkstatus === "待提交") {
        this.formDataA.lcfa.chkstatus = "K";
      } else if (this.formDataA.lcfa.chkstatus === "完成") {
        this.formDataA.lcfa.chkstatus = "C";
      } else if (this.formDataA.lcfa.chkstatus === "理赔确认") {
        this.formDataA.lcfa.chkstatus = "S";
      } else if (this.formDataA.lcfa.chkstatus === "待客户签") {
        this.formDataA.lcfa.chkstatus = "R";
      } else if (this.formDataA.lcfa.chkstatus === "核保中") {
        this.formDataA.lcfa.chkstatus = "P";
      } else if (this.formDataA.lcfa.chkstatus === "作废") {
        this.formDataA.lcfa.chkstatus = "T";
      }
      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
        chkstatus: this.formDataA.lcfa.chkstatus,
      };

      deleteReunderwriteApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            // this.intDataListA();
            this.dialogVisibleSupple = false;
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //提交二核
    submitTowReview() {
      var lcfaChkstatus;
      if (this.formDataA.lcfa.chkstatus === "待提交") {
        lcfaChkstatus = "K";
      } else if (this.formDataA.lcfa.chkstatus === "完成") {
        lcfaChkstatus = "C";
      } else if (this.formDataA.lcfa.chkstatus === "理赔确认") {
        lcfaChkstatus = "S";
      } else if (this.formDataA.lcfa.chkstatus === "待客户签") {
        lcfaChkstatus = "R";
      } else if (this.formDataA.lcfa.chkstatus === "核保中") {
        lcfaChkstatus = "P";
      } else if (this.formDataA.lcfa.chkstatus === "作废") {
        lcfaChkstatus = "T";
      }
      console.log(lcfaChkstatus, "lcfaChkstatus lcfaChkstatus");
      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        chksno: this.formDataA.lcfa.chksno,
        clmsel: this.formDataA.lcfa.chksno,
        chkstatus: lcfaChkstatus,
        clmcoy: this.formDataA.lcfa.clmcoy,
      };
      submitReunderwriteApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            // this.intDataListA();
            this.dialogVisibleSupple = false;
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //补充核保保存按钮
    saveReview() {
      this.$store.dispatch("loading/CHANGE_LOADING", true);
      //是否赔付比例转化
      var dw4param = JSON.parse(JSON.stringify(this.dw4));
      for (let one of dw4param) {
        if ((one.flag01 != undefined) & (one.flag01 == true)) {
          one.flag01 = "1";
        } else {
          one.flag01 = "0";
        }
      }
      let param = {
        clmnum: this.clmnum,
        euisClmFlag: "EUIS",
        clmsel: this.formDataA.lcfa.chksno,
        chksno: this.formDataA.lcfa.chksno,
        dw3Trectyp: "1",
        // dw3Chkdesc: this.dw3desc[this.dw3desc.length - 1].chkdesc,
        //理赔意见
        trectypLcfa: this.formDataA.trectypLcfarRdiao, //翻译

        dw6Prndate02: this.formDataA.dw6.prndate02,
        dw6IsChanged: "1",
        dw6Chkstatus: this.formDataA.dw6.chkstatus,
        autha: this.formDataA.dw6.autha, //是否列印
        dw6Procedate: this.formDataA.dw6.procedate,//结案日期
        dw6Apprcode: this.formDataA.dw6.username, //确定人员
        auth: this.formDataA.authRdiao, //客户意见
        dw6Apprdate: this.formDataA.dw6.apprdate, //确定日期
        dw6Enddate: this.formDataA.dw6.enddate, //回复截至日期
        dw6Trectyp: this.formDataA.dw6.trectyp,
        dw6Chkdesc: this.formDataA.dw6.chkdesc,
        dw6Enddate: this.mindate,//截至日期
        pndate02: this.mindate,//截至日期

        lcfdpfVO: this.dealInformationList, // 核保处理信息

        lcfgpfVO: this.lcfgpfVO, // 批注信息的新增、删除、修改
        dw4: dw4param, ////理赔意见保单列表

        dw6desc: this.dw6desc,
        dw3desc: this.dw3desc,
        insureInforList: this.insureInforList,
      };
      saveReunderwriteApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            let param1 = {
              clmnum: this.formDataA.lcfa.clmnum,
              chksno: this.formDataA.lcfa.chksno,
            };
            this.searchMethod(param1);
            this.$store.dispatch("loading/CHANGE_LOADING", false);
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$store.dispatch("loading/CHANGE_LOADING", false);
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { this.$store.dispatch("loading/CHANGE_LOADING", false); });
    },
    flag01Change(val, index) {
      this.dw4[index].isChanged = "1";
    },
    //变更内容弹框
    addchangeContext() {
      var text;
      let zg = /^[0-9]*$/;
      // if (!zg.test(this.lcfdpfVO.zmortpct)) {
      //   this.$message({
      //     message: "TM加费比例只能填入数字！",
      //     type: "warning",
      //     showClose: true,
      //   });
      //   return false;
      // }
      // if (!zg.test(this.lcfdpfVO.addamt)) {
      //   this.$message({
      //     message: "加费金额只能填入数字！",
      //     type: "warning",
      //     showClose: true,
      //   });
      //   return false;
      // }

      if (!zg.test(this.lcfdpfVO.effdate)) {
        this.$message({
          message: "变更生效日只能填入数字！",
          type: "warning",
          showClose: true,
        });
        return false;
      }
      if ((this.lcfdpfVO.effdate + "").length != 8) {
        this.$message({
          message: "变更生效日只能填只能填入8位数字！",
          type: "warning",
          showClose: true,
        });
        return false;
      }
      findZpshortcFromLcckByCrtableApi(this.lcfdpfVO)
        .then((res) => {
          if (res.resultCode === 0) {
            text = res.data.zpshortc;
            var apendText;
            var str = this.lcfdpfVO.effdate + "";
            if (this.lcfdpfVO.trectyp == "拒保") {
              apendText = `「 ${text} 」予以解除。`;
            } else if (this.lcfdpfVO.trectyp == "除外") {
              apendText = `「 ${text} 」除外${this.lcfdpfVO.cmntdesc
                },本变更自${str.substring(0, 4)}年${str.substring(
                  4,
                  6
                )}月${str.substring(6)}日生效。`;
            } else if (this.lcfdpfVO.trectyp == "加费") {
              // 金额需要支持小数录入
              let zg = /^[+-]?\d+(\.\d+)?$/;
              // let zg = /^[0-9]*$/;
              if (!zg.test(this.lcfdpfVO.zmortpct)) {
                this.$message({
                  message: "TM加费比例只能填入数字！",
                  type: "warning",
                  showClose: true,
                });
                return false;
              }
              // 金额需要支持小数录入
              // let zg1 = /^[+-]?\d+(\.\d+)?$/;
              if (!zg.test(this.lcfdpfVO.addamt)) {
                this.$message({
                  message: "加费金额只能填入数字！",
                  type: "warning",
                  showClose: true,
                });
                return false;
              }
              let params = {};
              var _this = this;
              this.$.ajax({
                headers: {
                  Authorization: getToken(constant.TOKEN) || "",
                },
                url:
                  constant.clmbase +
                  `/clm/reAudit2/countCrtableFromEufopfBycrtable?crtable=${_this.lcfdpfVO.crtable}`, //url路径
                type: "POST", //GET
                async: false, //或false,是否异步
                data: JSON.stringify(params),
                contentType: "application/json;charset=UTF-8",
                success: function (res, textStatus, jqXHR) {
                  if (res.resultCode === 0) {
                    let result = res.data.count;
                    if (result >= 0) {
                      apendText = `「 ${text} 」每期保障费用保费${_this.lcfdpfVO.addamt
                        }元,本变更自${str.substring(0, 4)}年${str.substring(
                          4,
                          6
                        )}月${str.substring(6)}日生效。`;
                    } else {
                      apendText = `「 ${text} 」每期增加保费${_this.lcfdpfVO.addamt
                        },本变更自${str.substring(0, 4)}年${str.substring(
                          4,
                          6
                        )}月${str.substring(6)}日生效。`;
                    }
                  }
                },
              });
            }
            if (
              this.lcfdpfVO.trectyp == "拒保" ||
              this.lcfdpfVO.trectyp == "除外" ||
              this.lcfdpfVO.trectyp == "加费"
            ) {
              let param = {
                chdrnum: this.chdrnumLabel,
                llongtext: apendText,
                clmnum: this.clmnumLabel,
                chksno: this.chksnoLabel,
                flag02: this.trectypLabel,
              };
              this.lcfgpfVO.push(param);
              this.dealInformationList[this.indexThree].effdate = this.lcfdpfVO.effdate;
              this.dealInformationList[this.indexThree].zmortpct = this.lcfdpfVO.zmortpct;
              this.dealInformationList[this.indexThree].addamt = this.lcfdpfVO.addamt;
              this.dealInformationList[this.indexThree].cmntdesc = this.lcfdpfVO.cmntdesc;
              this.dealInformationList[this.indexThree].oppc = this.lcfdpfVO.oppc;
            }
            this.dealInformationList[this.indexThree].effdate = this.lcfdpfVO.effdate;
            this.dealInformationList[this.indexThree].zmortpct = this.lcfdpfVO.zmortpct;
            this.dealInformationList[this.indexThree].addamt = this.lcfdpfVO.addamt;
            this.dealInformationList[this.indexThree].cmntdesc = this.lcfdpfVO.cmntdesc;
            this.dealInformationList[this.indexThree].oppc = this.lcfdpfVO.oppc;
            this.dialogVisibleSuppleContext = false;
          }
        })
        .catch(() => { });

    },

    authRdiaoChange(val) { },
    trectypLcfarRdiaoChange(val) {
      // this.formDataA.dw6.enddate 回复截至日期
      // this.formDataA.dw6.procedate结案日期
      if (val == "1") {
        if (
          this.formDataA.dw6.enddate == null ||
          this.formDataA.dw6.enddate == "0" ||
          this.formDataA.dw6.enddate == "" ||
          this.formDataA.dw6.enddate == undefined
        ) {
          this.formDataA.dw6.enddate = this.mindate + "";
        }

        this.formDataA.dw6.prndate02 = this.formDataA.dw6.enddate;
        this.formDataA.dw6.procedate = "";
        this.formDataA.dw6.chkstatus = "R";
        if ((this.dw4.length > 0) & (this.claimtype != "D")) {
          this.formDataA.dw6.autha = "Y";
        } else {
          this.formDataA.dw6.autha = "N";
        }
        // this.formDataA.dw6.autha = "Y";
        this.formDataA.dw6.trectyp = "";
      } else if (val == "2") {
        this.formDataA.dw6.enddate = "";
        this.formDataA.dw6.prndate02 = "";
        this.formDataA.dw6.procedate = this.busidate + "";
        this.formDataA.dw6.chkstatus = "C";
        this.formDataA.dw6.autha = "N";
        this.formDataA.dw6.trectyp = "";
      } else if (val == "3") {
        this.formDataA.dw6.enddate = "";
        this.formDataA.dw6.prndate02 = "";
        this.formDataA.dw6.procedate = this.busidate + "";
        this.formDataA.dw6.chkstatus = "S";

        this.formDataA.dw6.autha = "N";
        this.formDataA.dw6.trectyp = "3";
      }
    },

    //单选
    tableRowClassName({ row, rowIndex }) {
      //把每一行的索引放进row
      row.index = rowIndex;
    },
    tableRowClassNameTow({ row, rowIndex }) {
      //把每一行的索引放进row
      row.indexTow = rowIndex;
    },
    tableRowClassNameThree({ row, rowIndex }) {
      //把每一行的索引放进row
      row.indexThree = rowIndex;
    },
    onRowClick(row, event, column) {
      //点击获取索引
      this.index = row.index;
    },
    onRowClickTow(row) {
      //点击获取索引
      this.indexTow = row.indexTow;
    },
    onRowClickThree(row) {
      //点击获取索引
      this.indexThree = row.indexThree;
      console.log(
        this.indexThree,
        "this.indexThree this.indexThree this.indexThree"
      );
      this.chdrnumLabel = row.chdrnum;
      this.clmnumLabel = row.clmnum;
      this.chksnoLabel = row.chksno;
      this.trectypLabel = row.trectyp;
    },

    //核保意见增加按钮
    underwriteAdd() {
      if (this.chdrnumLabel == undefined || this.chdrnumLabel == "") {
        this.$message({
          message: "请选择保单号码",
          type: "warning",
          showClose: true,
        });
        return false;
      }
      let param = {
        chdrnum: this.chdrnumLabel,
        clmnum: this.clmnumLabel,
        chksno: this.chksnoLabel,
        flag02: this.trectypLabel,
      };
      this.lcfgpfVO.push(param);
    },
    //核保意见删除按钮
    underwritedelete() {
      this.lcfgpfVO.splice(this.indexTow, 1);
    },
    trectypChange(val, row) {
      console.log(val, row);
      if (this.formDataA.lcfa.chkstatus == "核保中" && val == "A") {
        let param01 = {
          crrcd: row.crrcd,
        };
        callClm034Api(param01)
          .then((res) => {
            if (res.resultCode === 0) {
              row.effdate = res.data;
            } else {
              this.$message({
                message: res.resultMsg,
                type: "warning",
                showClose: true,
              });
            }
          })
          .catch(() => { });
      } else if (this.formDataA.lcfa.chkstatus == "核保中" && val == "R") {
        let param02 = {
          clmnum: row.clmnum,
          chdrnum: row.chdrnum,
        };
        wfAnunityApi(param02)
          .then((res) => {
            if (res.resultCode === 0) {
              row.effdate = res.data;
            } else {
              this.$message({
                message: res.resultMsg,
                type: "warning",
                showClose: true,
              });
            }
          })
          .catch(() => { });
      }
    },
    //变更内容按钮
    changeContextClick(row) {
      console.log(row, "row row");
      this.trectyJudge = row.trectyp;
      let param = {
        clmnum: row.clmnum,
        rider: row.rider,
        life: row.life,
        crtable: row.crtable,
        trectyp: row.trectyp,
        euisClmFlag: "EUIS",
        effdate: row.effdate,
        zmortpct: row.zmortpct, //TM加费比例
        oppc: row.oppc, //加费百分比
        addamt: row.addamt, //加费
        cmntdesc: row.cmntdesc, //除外内容
      };
      goChangeApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.lcfdpfVO = res.data.lcfdpfVO;
            //限制加费百分比
            this.oppcEnditFlag = res.data.oppcEnditFlag;
            //限制TM百分比
            this.zmortpctEnditFlag = res.data.zmortpctEnditFlag;
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
      this.dialogVisibleSuppleContext = true;
    },
    //补充核保--原因保存按钮
    saveReason() {
      var count1 = 0;
      var count2 = 0;
      var count3 = 0;
      for (let one of this.changeCauseList) {
        if (one.flag02 == "0") {
          count1++;
        }
        if (one.flag02 == "1") {
          count2++;
        }
        if (one.flag02 == "2") {
          count3++;
        }
      }

      if (count1 > 1 || count2 > 1 || count3 > 1) {
        this.$message({
          message: "输入重复，请检查！",
          type: "warning",
          showClose: true,
        });
        return false;
      }
      // for (let one of this.changeCauseList) {
      //   if (one.flag02 == "0") {
      //     this.$set(
      //       one,
      //       "llongtext",
      //       "XXXX(疾病),为保险合同成立/复效前之病史，而投保时未如实告知，以上事项已严重影响本公司的承保决定。"
      //     );
      //     // one.llongtext="XXXX(疾病),为保险合同成立/复效前之病史，而投保时未如实告知，以上事项已严重影响本公司的承保决定。"
      //   } else if (one.flag02 == "1") {
      //     //  one.llongtext="投保时告知的年龄与其真实年龄不符,投保时的年龄应为XX"
      //     this.$set(
      //       one,
      //       "llongtext",
      //       "投保时告知的年龄与其真实年龄不符,投保时的年龄应为XX"
      //     );
      //   } else if (one.flag02 == "2") {
      //     //  one.llongtext= "实际职业为XX(职业等级为XX级),与投保时/复效时告知的职业等级不符。"
      //     this.$set(
      //       one,
      //       "llongtext",
      //       "实际职业为XX(职业等级为XX级),与投保时/复效时告知的职业等级不符。"
      //     );
      //   }
      // }
      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        chksno: this.formDataA.lcfa.chksno,
        clmsel: this.formDataA.lcfa.chksno,
        chdrnum: this.chdrnumlabel,
        lcfgpfVO: this.changeCauseList,
      };
      saveChangeCauseApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //补充核保原因删除
    deleteReason() {
      this.changeCauseList.splice(this.index, 1);
    },
    //补充核保原因添加
    addReason() {
      if (this.changeCauseList.length > 2) {
        this.$message({
          message: "新增不能超过三条数据",
          type: "warning",
          showClose: true,
        });
        return false;
      }

      let param = {
        clmnum: this.formDataA.lcfa.clmnum,
        chksno: this.formDataA.lcfa.chksno,
        chdrnum: this.chdrnumlabel,
        trectyp: "0",
        recid: this.changeCauseList.length,
        flag01: "",
        flag02: "",
        flag03: "",
        flag04: "",
        flag03: "",
        flag05: "",
        jobName: "CLM",
        jobNameofinsureInforList: "",
        jobNameofdw3desc: "",
        jobNameofdw6desc: "",
        userProfile: this.userProfileLabel,
        datime: this.formatDate(new Date(), "yyyy-MM-dd hh:mm:ss"),
        modifyFlag: "0",
      };
      this.changeCauseList.push(param);
    },
    // 禁止类别为补充核保选择
    selectableFn(row, index) {
      if (row.chktyp == "补充核保") {
        return false;
      } else {
        return true;
      }
    },
    //基本信息初始化
    intDataListA() {
      let param = { clmnum: this.clmnum };
      queryApi(param)
        .then((res) => {
          this.dataList = res.data.lcfaList;
          this.procecode = res.data.procecode;
          for (var one of this.dataList) {
            //翻译二核类别
            one.chktyp = this.transformationFun("chktyp", one.chktyp);
            //翻译二核状态
            one.chkstatus = this.transformationFun("chkstatus", one.chkstatus);
          }
        })
        .catch(() => { });
    },
    //新增续期核保信息初始化
    intDataListB(row) {
      //新增续期核保页面--先查保单下拉选择列表
      let param1 = {
        clmnum: row.clmnum,
        chksno: row.chksno,
        chdrnum: row.xpChdrnum,
      };
      getChdrnumListApi(param1)
        .then((res) => {
          this.chdrnumList = res.data;
        })
        .catch(() => { });
    },
    //新增续期核保信息初始化
    intDataListC(row) {
      let param1 = {
        clmnum: row.clmnum,
        chksno: row.chksno,
      };
      this.searchMethod(param1);
    },
    searchMethod(param) {
      searchApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.formDataA.base = res.data.base
            this.formDataA.lcfa = res.data.lcfa;
            //后理赔号
            var newbehindclmnum = this.formDataA.lcfa.clmnum;
            if (newbehindclmnum !== undefined) {
              this.$set(
                this.formDataA.lcfa,
                "behindclmnum",
                newbehindclmnum.substring(3, 9)
              );
            }
            //翻译二核类别
            this.formDataA.lcfa.chkstatus = this.transformationFun(
              "chkstatus",
              this.formDataA.lcfa.chkstatus
            );

            this.formDataA.alertMsg = res.data.alertMsg;

            this.formDataA.dw6 = res.data.dw6;
            this.formDataA.trectypLcfarRdiao = this.formDataA.dw6.trectypLcfa;
            this.formDataA.authRdiao = this.formDataA.dw6.auth;
            this.mindate = res.data.mindate;
            this.busidate = res.data.busidate;
            this.claimtype = res.data.claimtype;

            this.dealInformationList = res.data.dealInformationList;

            this.dw4 = res.data.dw4;

            //是否赔付比例转化
            for (let one of this.dw4) {
              if ((one.flag01 != undefined) & (one.flag01 == "1")) {
                this.$set(one, "flag01", true);
              } else {
                this.$set(one, "flag01", false);
              }
            }
            //二核原因
            this.dw3desc = res.data.dw3desc;
            console.log(res.data.dw3desc, "res.data.dw3desc res.data.dw3desc");
            //核保意见 :
            this.insureInforList = res.data.insureInforList;
            //理赔意见
            this.dw6desc = res.data.dw6desc;
            //批注信息
            this.lcfgpfVO = res.data.postilList;
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //双击基本信息触发事件
    rowBaseClick(row, column, event) {
      this.chdrnumLabel = "";
      this.formDate.chdrnum = "";
      this.dataListB = [];
      this.lcfc = {};
      if (row.chktyp == "补充核保") {
        this.intDataListC(row);
        this.dialogVisibleSupple = true;
      } else if (row.chktyp == "续期核保") {
        this.$store.dispatch("loading/CHANGE_LOADING", false);
        this.formDate.chkstatus = row.chkstatus;
        this.formDate.chdrnum = row.xpChdrnum;
        this.formDate.chksno = row.chksno;
        this.formDate.clmnum = row.clmnum;
        row.xpChdrnum != ""
          ? (this.chDisableFlag = true)
          : (this.chDisableFlag = false);
        //this.search();
        var newbehindclmnum = this.formDate.clmnum; //后理赔号
        if (newbehindclmnum !== undefined) {
          this.$set(
            this.formDate,
            "behindclmnum",
            newbehindclmnum.substring(3, 9)
          );
        }
        this.getChdrnumList();
        this.dialogVisibleRenewal = true;
        let param = {
          clmnum: row.clmnum,
          chksno: row.chksno,
          chdrnum: row.xpChdrnum,
        };
        initRenewApi(param)
          .then((res) => {
            this.dataListB = res.data.dw4list;
            //翻译二核类别
            for (var one of this.dataListB) {
              one.pstatcode = one.statcode + "/" + one.pstatcode;
              one.trectyp = this.transformationFun("trectyp", one.trectyp);
            }
            this.lcfaDTO = res.data.lcfaDTO;
            this.lcfc = res.data.lcfc;
            this.lcfc.chkrsn =
              res.data.lcfc.chkrsn == null ? "" : res.data.lcfc.chkrsn;
          })
          .catch(() => { });
        // this.formDate.chdrnum = row.xpChdrnum;
        // this.dialogVisibleRenewal = true;
        // }
      }
    },
    search() {
      //新增续期核保页面--按保单号查询
      let param2 = {
        clmnum: this.formDate.clmnum,
        chksno: this.formDate.chksno,
        chdrnum: this.formDate.chdrnum,
      };
      initRenewApi(param2)
        .then((res) => {
          this.dataListB = res.data.dw4list;
          //翻译二核类别
          for (var one of this.dataListB) {
            one.pstatcode = one.statcode + "/" + one.pstatcode;
            one.trectyp = this.transformationFun("trectyp", one.trectyp);
          }
          this.lcfc.chkrsn =
            res.data.lcfc.chkrsn == null ? "" : res.data.lcfc.chkrsn;
        })
        .catch(() => { });
    },

    getChdrnumList() {
      let param1 = {
        clmnum: this.formDate.clmnum,
        chksno: this.formDate.chksno,
      };
      getChdrnumListApi(param1)
        .then((res) => {
          this.chdrnumList = res.data;
        })
        .catch(() => { });
    },

    refreshData() {
      let flag = this.saveflag;
      if ((this.formDate.chkstatus == "待提交") & flag) {
        this.getChdrnumList();
      }
      this.saveflag = "";
    },

    // 选中需要删除的行
    selectToDel(selection, row) {
      if (selection.length == 0) {
        this.cancelRenewalflag = true;
      } else {
        console.log(
          row.chktyp,
          "row.chktyp",
          row.lsTmp,
          "row.lsTmp",
          row.lsTmp1,
          "row.lsTmp1"
        );
        if (
          row.chkstatus != "作废" &&
          row.chkstatus != "完成" &&
          row.chktyp == "续期核保" &&
          (row.lsTmp != "0" || row.lsTmp1 != "0")
        ) {
          this.cancelRenewalflag = false;
        }
      }

      this.lcfaDellete = selection;
    },

    //新增续期核保存按钮
    sageRenewal() {
      this.saveflag = false;
      var isEmpty = 0;

      for (var one of this.dataListB) {
        if (one.trectyp == false) {
          one.trectyp = 0;
        } else {
          isEmpty++;
          one.trectyp = 4;
        }
      }

      if (isEmpty == 0) {
        this.$message({
          message: "请选择险种",
          type: "warning",
          showClose: true,
        });
        return false;
      }

      if (this.lcfc.chkrsn == undefined || this.lcfc.chkrsn == "") {
        this.$message({
          message: "保单被点选了提核险种,续核意见不能为空",
          type: "warning",
          showClose: true,
        });
        return false;
      }

      if (this.formDate.chkstatus == "待提交") {
        this.formDate.chkstatus = "K";
      } else if (this.formDate.chkstatus == "理赔确认") {
        this.formDate.chkstatus = "S";
      } else if (this.formDate.chkstatus == "完成") {
        this.formDate.chkstatus = "C";
      } else if (this.formDate.chkstatus == "待客户签") {
        this.formDate.chkstatus = "R";
      } else if (this.formDate.chkstatus == "核保中") {
        this.formDate.chkstatus = "P";
      } else if (this.formDate.chkstatus == "作废") {
        this.formDate.chkstatus = "T";
      }

      let param = {
        clmnum: this.formDate.clmnum,
        clmsel: this.formDate.chksno,
        euisClmFlag: "EUIS",
        chkstatus: this.formDate.chkstatus,
        chkrsn: this.lcfc.chkrsn,
        chksno: this.formDate.chksno,
        chdrnum: this.formDate.chdrnum,
        dw4list: this.dataListB,
      };
      saveRenewApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
            // 保存后刷新列表
            // this.intDataListA();
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });

      this.dialogVisibleRenewal = false;
    },
    //核保续期提交按钮
    underwriteRenewalSumit() {
      let param = {
        clmnum: this.formDate.clmnum,
        dw4list: this.dataListB,
      };
      valiCrtableApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
            let isEmpty = 0;
            for (var one of this.dataListB) {
              if (one.trectyp == false) {
                one.trectyp = 0;
              } else {
                isEmpty++;
                one.trectyp = 4;
              }
            }
            if (isEmpty == 0) {
              this.$message({
                message: "请选择险种",
                type: "warning",
                showClose: true,
              });
              return false;
            }

            if (this.lcfc.chkrsn == undefined || this.lcfc.chkrsn == "") {
              this.$message({
                message: "保单被点选了提核险种,续核意见不能为空",
                type: "warning",
                showClose: true,
              });
              return false;
            }
            let param1 = {
              clmnum: this.formDate.clmnum,
            };
            checkMasculineAlertApi(param1)
              .then((res) => {
                if (res.resultCode === 0) {
                  let param2 = {
                    clmnum: this.formDate.clmnum,
                    chksno: this.formDate.chksno,
                    chdrnum: this.formDate.chdrnum,
                    chkrsn: this.lcfc.chkrsn,
                    dw4list: this.dataListB,
                  };
                  auditeApi(param2)
                    .then((res) => {
                      if (res.resultCode === 0) {
                        this.$message({
                          message: res.resultMsg,
                          type: "success",
                          showClose: true,
                        });
                        // 保存后刷新列表
                        // this.intDataListA();
                        this.dialogVisibleRenewal = false;
                      } else {
                        this.$message({
                          message: res.resultMsg,
                          type: "warning",
                          showClose: true,
                        });
                      }
                    })
                    .catch(() => { });
                } else {
                  this.$message({
                    message: res.data.alertMsg,
                    type: "warning",
                    showClose: true,
                  });
                }
              })
              .catch(() => { });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },
    //解除提交
    unAuditSumit() {
      let param = {
        clmnum: this.formDate.clmnum,
        chksno: this.formDate.chksno,
        chdrnum: this.formDate.chdrnum,
      };
      unAuditApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
            // 保存后刷新列表
            // this.intDataListA();
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
      this.dialogVisibleRenewal = false;
    },

    //新增续期核保
    addRenewal() {
      this.dataForm.chdrnum = "";
      this.dataListB = [];
      this.formDate.chkstatus = "待提交";
      this.formDate.chksno =
        parseInt(this.dataList[this.dataList.length - 1].chksno) + 1;

      this.formDate.clmnum = this.clmnum;
      var newbehindclmnum = this.formDate.clmnum; //后理赔号
      if (newbehindclmnum !== undefined) {
        this.$set(
          this.formDate,
          "behindclmnum",
          newbehindclmnum.substring(3, 9)
        );
      }
      this.dialogVisibleRenewal = true;
      // 新增按钮点进来先保存数据
      let param = {
        clmnum: this.formDate.clmnum,
        chksno: this.formDate.chksno,
      };
      this.getReUnderwriteCb(param);

      this.saveflag = true;
    },
    // 获取最大序列号并且保存新增数据
    getReUnderwriteCb(param) {
      getReUnderwriteCb3clickC2Api(param)
        .then((res) => {
          // 保存后保单下拉列表可用
          // this.intDataListA();
          this.getChdrnumList();
        })
        .catch(() => { });
    },
    //新增补充核保按钮
    addVisibleSupple() {
      let param = { clmnum: this.clmnum, chktyp: "1" };
      if (this.procecode != "C" && this.procecode != "S") {
        getReUnderwriteCb4clickC2andC3Api(param)
          .then((res) => {
            if (res.resultCode === 0) {
              //有照会Q类型
              if (res.data.countPending > 0) {
                if (res.data.countLcfa == 0) {
                  console.log("新增补充核保");
                  //新增核保
                  existQlPendingAndSaveApi(param)
                    .then((res) => {
                      if (res.resultCode === 0) {
                        //查最大的二核号
                        console.log(param, "param param");
                        getReUnderwriteCb4clickC1Api(param)
                          .then((res) => {
                            if (res.resultCode === 0) {
                              var maxchksno = res.data.chksno;
                              let param1 = {
                                clmnum: this.clmnum,
                                chksno: maxchksno,
                              };
                              this.searchMethod(param1);
                              // this.intDataListA();
                            }
                          })
                          .catch(() => { });
                      }
                    })
                    .catch(() => { });
                } else {
                  console.log("不新增补充核保");
                  //查最大的二核号
                  getReUnderwriteCb4clickC1Api(param)
                    .then((res) => {
                      if (res.resultCode === 0) {
                        var maxchksno = res.data.chksno;
                        let param1 = {
                          clmnum: this.clmnum,
                          chksno: maxchksno,
                        };
                        this.searchMethod(param1);
                      }
                    })
                    .catch(() => { });
                }
              } else {
                console.log("跳转页面");
                //this.jumpMethod(param)
              }

              this.$message({
                message: res.resultMsg,
                type: "success",
                showClose: true,
              });
            } else {
              this.$message({
                message: res.resultMsg,
                type: "warning",
                showClose: true,
              });
            }
          })
          .catch(() => { });
      }
      this.dialogVisibleSupple = true;
    },
    //跳转到照会页面
    jumpMethod(param) {
      getNoteInformationApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },

    //重新二核
    againUnderwrite() {
      if (this.formDataA.lcfa.chkstatus === "待提交") {
        this.formDataA.lcfa.chkstatus = "K";
      } else if (this.formDataA.lcfa.chkstatus === "完成") {
        this.formDataA.lcfa.chkstatus = "C";
      } else if (this.formDataA.lcfa.chkstatus === "理赔确认") {
        this.formDataA.lcfa.chkstatus = "S";
      } else if (this.formDataA.lcfa.chkstatus === "待客户签") {
        this.formDataA.lcfa.chkstatus = "R";
      } else if (this.formDataA.lcfa.chkstatus === "核保中") {
        this.formDataA.lcfa.chkstatus = "P";
      } else if (this.formDataA.lcfa.chkstatus === "作废") {
        this.formDataA.lcfa.chkstatus = "T";
      }
      var param = {
        clmnum: this.clmnum,
        chkstatus: this.formDataA.lcfa.chkstatus,
      };
      reOpenReunderwriteApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            this.dialogVisibleSupple = false;
            // this.intDataListA();
            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
    },

    //理赔意见说明增加按钮
    ClaimSettOpinionAdd() { },
    //理赔意见说明删除按钮
    ClaimSettOpinionDelete() { },
    //原因弹框
    reasonShow(row) {
      let param = {
        clmnum: row.clmnum,
        chksno: row.chksno,
        chdrnum: row.chdrnum,
      };
      queryCauseApi(param)
        .then((res) => {
          if (res.resultCode === 0) {
            //变更原因
            this.changeCauseList = res.data.changeCauseList;
            //加费/除外原因
            this.addCostOtherCauseList = res.data.addCostOtherCauseList;
            //不继保原因
            this.noContinueInuserList = res.data.noContinueInuserList;
            //拒保原因
            this.refuseInsureList = res.data.refuseInsureList;

            this.$message({
              message: res.resultMsg,
              type: "success",
              showClose: true,
            });
          } else {
            this.$message({
              message: res.resultMsg,
              type: "warning",
              showClose: true,
            });
          }
        })
        .catch(() => { });
      this.dialogVisibleSuppleReason = true;
      this.userProfileLabel = this.userid
      this.chdrnumlabel = row.chdrnum;
    },

    //增加文本框
    addTextofdw6desc(dw6desc) {
      var num = this.dataNum++;
      dw6desc.push(
        //增加就push进数组一个新值
        {
          id: num,
          clmnum: this.formDataA.lcfa.clmnum,
          chksno: this.formDataA.lcfa.chksno,
          crtuser: this.account,
          userProfile: this.account,
          jobno: 0,
          chkdesc: "",
          crtdate: this.getDate(),
          jobName: this.chinesename,
          isChanged: "1", //新增
          trectyp: "1", //
        }
      );
    },
    //增加文本框
    addTextofinsureInforList(insureInforList) {
      var num = this.dataNum++;
      insureInforList.push(
        //增加就push进数组一个新值
        {
          id: num,
          clmnum: this.formDataA.lcfa.clmnum,
          chksno: this.formDataA.lcfa.chksno,
          crtuser: this.account,
          userProfile: this.account,
          jobno: 0,
          chkdesc: "",
          crtdate: this.getDate(),
          jobName: this.account,
          isChanged: "1", //新增
          trectyp: "3", //
        }
      );
      console.log(insureInforList, "insureInforList insureInforList insureInforList")
    },
    //增加文本框
    addTextofdw3desc(dw3desc) {
      var num = this.dataNum++;
      dw3desc.push(
        //增加就push进数组一个新值
        {
          id: num,
          clmnum: this.formDataA.lcfa.clmnum,
          chksno: this.formDataA.lcfa.chksno,
          crtuser: this.account,
          userProfile: this.account,
          jobno: 0,
          chkdesc: "",
          crtdate: this.getDate(),
          jobName: this.chinesename,
          isChanged: "1", //新增
          trectyp: "2", //二核原因类型
        }
      );
      console.log(dw3desc, "dw3desc dw3desc dw3desc");
    },
    //删除文本框dw3desc
    deleteTextdw3desc(item, index) {
      this.$set(item, "isChanged", "3");
      console.log(item);
      // dw3desc.splice(index, 1); //删除了数组中对应的数据也就将这个位置的输入框删除
    },
    //删除文本框insureInforList
    deleteTextinsureInforList(item, index) {
      this.$set(item, "isChanged", "3");
    },
    //删除文本框dw3desc
    deleteTextdw6desc(item, index) {
      this.$set(item, "isChanged", "3");
    },
    resetForm() { }, //重置按钮
    rowStyleFn() { },
    filterTag(value, row) { },
    filterHandler(value, row, column) {
      const property = column["property"];
      return row[property] === value;
    },

    searchClick() { },
    clearBtn() { },
    resetForm() {
      this.formDate.frontclmnum = "";
      this.formDate.behindclmnum = "";
    },
    formatDate(date, fmt) {
      date = new Date(date);
      var o = {
        "M+": date.getMonth() + 1, //月份
        "d+": date.getDate(), //日
        "h+": date.getHours(), //小时
        "m+": date.getMinutes(), //分
        "s+": date.getSeconds(), //秒
        "q+": Math.floor((date.getMonth() + 3) / 3), //季度
        S: date.getMilliseconds(), //毫秒
      };
      if (/(y+)/.test(fmt))
        fmt = fmt.replace(
          RegExp.$1,
          (date.getFullYear() + "").substr(4 - RegExp.$1.length)
        );
      for (var k in o)
        if (new RegExp("(" + k + ")").test(fmt))
          fmt = fmt.replace(
            RegExp.$1,
            RegExp.$1.length == 1
              ? o[k]
              : ("00" + o[k]).substr(("" + o[k]).length)
          );
      return fmt;
    },
    // 日期转换
    getDate() {
      const now = new Date();
      const year = now.getFullYear(); // 年
      let month = now.getMonth() + 1; // 月
      let day = now.getDate(); // 日
      if (month < 10) month = "0" + month;
      if (day < 10) day = "0" + day;
      return year + month + day;
    },
    // 枚举转换
    transformationFun(type, status) {
      return transformation.transformation(type, status);
    },
    handleClick() { },
  },
};
</script>

<style lang="less" scoped>
.costbox {
  padding-top: 10px;
  background-color: #fff;
  box-sizing: border-box;
}

.el-dialog-div {
  height: 60vh;
  overflow: auto;
}

.fontStyle {
  font-weight: bold;
}
</style>
